Skip to main content

StringEndsWithString

Type

operator

Summary

Determines whether Source ends with Suffix

Syntax

<Source> ends with <Suffix>

Description

Source ends with Suffix if and only if the chars of Suffix occur as a final subsequence of the chars of Source.

note

Since "" is a final substring of every string, every string ends with the empty string.

Parameters

NameTypeDescription

Suffix

An expression which evaluates to a string.

Source

An expression which evaluates to a string.

Examples

variable tVar as String
variable tResult as String
put "abcde" into tVar
if tVar ends with "cde" then
put "success" into tResult
end if
Thank you for your feedback!

Was this page helpful?